Skip to content

Send only the written bytes of FML proxy packets - #1032

Open
Jakfut wants to merge 2 commits into
GTNewHorizons:masterfrom
JakfutCC:fix-proxy-packet-padding
Open

Jakfut wants to merge 2 commits into
GTNewHorizons:masterfrom
JakfutCC:fix-proxy-packet-padding

Conversation

@Jakfut

@Jakfut Jakfut commented Oct 28, 2026 •

Copy link
Copy Markdown

Summary

FMLProxyPacket sends the buffer untrimmed, a bunch of mods use this incorrectly, causing the packet to pad zeros until the next power of 2, at least 256 bytes.

I moved it to a Hodgepodge fix because too many mods are using this incorrectly
GTNewHorizons/GT5-Unofficial#8596
GTNewHorizons/CubicChunks1710#155

Result

In my CubicChunks UHV world this cut total network traffic by one third, and GregTech traffic by halve, I have not measured the change without CubicChunks

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@Jakfut Jakfut added AI This PR was made with heavy AI assistance and needs more thorough review. Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. Performance Changes with the goal of improving performance. labels Oct 28, 2026
@Nikolay-Sitnikov Nikolay-Sitnikov self-assigned this Oct 28, 2026
@Nikolay-Sitnikov
Nikolay-Sitnikov self-requested a review October 28, 2026 21:27
@Algent Algent added the Ongoing Freeze - Do NOT Merge For PRs submitted close to a release that must wait for the next dev cycle to merge. label Oct 29, 2026
@Dream-Master Dream-Master removed the Ongoing Freeze - Do NOT Merge For PRs submitted close to a release that must wait for the next dev cycle to merge. label Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI This PR was made with heavy AI assistance and needs more thorough review. Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. Performance Changes with the goal of improving performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants